home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
QRZ! Ham Radio 8
/
QRZ Ham Radio Callsign Database - Volume 8.iso
/
mac
/
files
/
infodata
/
callbook.tar
/
callbook_1.3
/
compress
/
huffman.c
< prev
next >
Wrap
C/C++ Source or Header
|
1989-12-14
|
223b
|
15 lines
#include <stdio.h>
#include "huffman.h"
main()
{
int size, temp, sum = 0;
char buf[BUFSIZ];
while (size = read(0, buf, BUFSIZ-1))
for (temp=0; temp<size; temp++)
sum += psizes[buf[temp]];
printf("%d\n", sum);
}